﻿using MainView.Model;
using MainView.Model.sys;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MainView.MyControl
{
    public partial class DevZyt : UserControl
    {
        public RoomState Rs { get; set; }

        public DevZyt(RoomState roomState)
        {
            InitializeComponent();
            Rs = roomState;
            UpShowFirst();
        }
        public void UpShowFirst()
        {
            Action DoAction = delegate ()
            {
                RoomNamelbl.Text = Rs.Name;
            };
            ControlExtensions.UIThreadBeginInvoke(this, DoAction);
        }

    }
}
